﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InventoryPro.DAL;

namespace InventoryPro.BL
{
    public class CustomerLogic
    {
       CustomerDAO dao = new CustomerDAO();


        public List<Customer> GetAllCustomers()
        {

            return dao.GetAllCustomers();
        }

        public Customer GetCustomerbyID(string ID)
        {
            return dao.GetCustomerbyID(ID);
        }


        public void CreateCustomer(Customer product)
        {

            dao.CreateCustomer(product);
        }


        public void UpdateCustomer(Customer product)
        {

            dao.UpdateCustomer(product);
        }


        public void DeleteCustomer(string ID)
        {
            dao.DeleteCustomer(ID);

        }
    }
}
